package com.itsm.facade.entity.user;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 权限管理
 * </p>
 *
 * @author 张权
 * @since 2017-09-28
 */
@TableName("sys_right")
public class Right extends Model<Right> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("right_id")
	private Long rightId;
    /**
     * 权限名称
     */
	@TableField("right_name")
	private String rightName;
    /**
     * 权限地址
     */
	@TableField("right_url")
	private String rightUrl;
    /**
     * 权限位
     */
	@TableField("right_pos")
	private Integer rightPos;
    /**
     * 权限码
     */
	@TableField("right_code")
	private Long rightCode;
    /**
     * 父级权限
     */
	private Long pid;
    /**
     * 权限类型(0是菜单，1是按钮)
     */
	private Integer type;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 最后更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 是否锁定(默认为0正常，1锁定)
     */
	@TableField("is_lock")
	private Integer isLock;


	public Long getRightId() {
		return rightId;
	}

	public void setRightId(Long rightId) {
		this.rightId = rightId;
	}

	public String getRightName() {
		return rightName;
	}

	public void setRightName(String rightName) {
		this.rightName = rightName;
	}

	public String getRightUrl() {
		return rightUrl;
	}

	public void setRightUrl(String rightUrl) {
		this.rightUrl = rightUrl;
	}

	public Integer getRightPos() {
		return rightPos;
	}

	public void setRightPos(Integer rightPos) {
		this.rightPos = rightPos;
	}

	public Long getRightCode() {
		return rightCode;
	}

	public void setRightCode(Long rightCode) {
		this.rightCode = rightCode;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getIsLock() {
		return isLock;
	}

	public void setIsLock(Integer isLock) {
		this.isLock = isLock;
	}

	@Override
	protected Serializable pkVal() {
		return this.rightId;
	}

	@Override
	public String toString() {
		return "Right{" +
			"rightId=" + rightId +
			", rightName=" + rightName +
			", rightUrl=" + rightUrl +
			", rightPos=" + rightPos +
			", rightCode=" + rightCode +
			", pid=" + pid +
			", type=" + type +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", isLock=" + isLock +
			"}";
	}
}
